<%@ page language="java" pageEncoding="UTF-8" import="com.OnlineHouseLeaseSystem.struts.form.UserRegisterForm" %>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
  <head>
    <html:base />
    
    <title>Userinformation.jsp</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <html:form action="/userinformationchange" method="post">
        <table>
                <tr align="center">
                <td colspan="2">
                    ${userRegisterForm.errorMsg}
                </td>
                </tr>
                <tr>
                    <td>用户名</td>
                    <td>
                    ${userRegisterForm.user_name}
                    <html:hidden name="userRegisterForm" property="user_name" value="${userRegisterForm.user_name}"/>
                    </td>
                </tr>
                <tr>
                    <td>密码</td>
                    <td><html:password property="password"
                                   name="userRegisterForm">
                                   ${userRegisterForm.password}</html:password></td>
                </tr>
                <tr>
                    <td>再输一遍密码</td>
                    <td><html:password property="password_check"
                                   name="userRegisterForm">
                                   ${userRegisterForm.password_check}</html:password></td>
                </tr>
                <tr>
                	<td>性别</td>
                	<td>
                	<html:select property="gender" name="userRegisterForm" value="${userRegisterForm.gender}">                                      
                        <html:option value="男">男</html:option>
                        <html:option value="女">女</html:option>                      
                    </html:select>
                    </td>
                </tr>
                <tr>
                    <td>电话号码</td>
                    <td><html:text property="phone_number"
                                   name="userRegisterForm">
                                   ${userRegisterForm.phone_number}</html:text></td>
                </tr>
                <tr>
                    <td>身份证号码</td>
                    <td><html:text property="ID"
                                   name="userRegisterForm">
                                   ${userRegisterForm.ID}</html:text></td>
                </tr>
                <tr>
                    <td>居住地址</td>
                    <td><html:text property="user_address"
                                   name="userRegisterForm">
                                   ${userRegisterForm.user_address}</html:text></td>
                </tr>
                <tr>
                <td align="center"><html:submit value="修改"/></td>
                </tr>
        </table>
        </html:form>
        <c:if test="${user_id != 0}">
        <html:link action="/toviewuserrentmessagepage">求租信息管理</html:link>
        <html:link action="/toviewuserhousecommentpage">房屋评论管理</html:link>
        <html:link action="/toviewusernoticepage">浏览送出的看房请求</html:link>
        <html:link action="/toviewreceivednoticepage">浏览所有收到的看房请求</html:link>
        <html:link action="/toviewcomplaintpage">浏览自己发布的建议和投诉</html:link>
        </c:if>
  </body>
</html:html>
